define(['jquery', 'bootstrap', 'frontend', 'form', 'template'], function ($, undefined, Frontend, Form, Template) {
    var Controller = {
        kpgsyzm: function () {
            var configIndex = new Vue({
                el: "#configIndex",
                data() {
                    return {
                        form: {
                            GSName: '',
                            Jym: '',
                        }
                    }
                },
                mounted : function () {

                },
                methods: {
                    onSubmit() {
                        let that = this;
                        //http://dahui.test/api/dahui/createyzm?name=阿斯顿发送到
                        var url = "/api/dahui/createyzm?name=" + that.form.GSName;
                        console.log(url);
                        Fast.api.ajax({
                            url: url,
                            loading: 0
                        }, function (data, ret) {
                            that.form.Jym = data;
                            return false;
                        });
                    }
                },
            })

        },
    };
    return Controller;
});